<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{billsBean.id}"/>
		<f:event type="preRenderView" listener="#{billsBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="View Bills"/>

	<ui:define name="header">
		Bills
	</ui:define>

	<ui:define name="subheader">
		View existing Bills
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:panelGrid columnClasses="label,component,required" columns="3">
			<h:outputLabel for="billsBeanBillsBillDate" value="Bill Date:"/>
			<h:outputText id="billsBeanBillsBillDate" value="#{billsBean.bills.billDate}">
				<f:convertDateTime type="date"/>
			</h:outputText>
			<h:outputText/>
			<h:outputLabel for="billsBeanBillsBillNumber" value="Bill Number:"/>
			<h:outputText id="billsBeanBillsBillNumber" value="#{billsBean.bills.billNumber}"/>
			<h:outputText/>
			<h:outputLabel for="billsBeanBillsComment" value="Comment:"/>
			<h:outputText id="billsBeanBillsComment" value="#{billsBean.bills.comment}"/>
			<h:outputText/>
			<h:outputLabel for="billsBeanBillsCreatedOn" value="Created On:"/>
			<h:outputText id="billsBeanBillsCreatedOn" value="#{billsBean.bills.createdOn}">
				<f:convertDateTime type="date"/>
			</h:outputText>
			<h:outputText/>
			<h:outputLabel for="billsBeanBillsModifiedOn" value="Modified On:"/>
			<h:outputText id="billsBeanBillsModifiedOn" value="#{billsBean.bills.modifiedOn}">
				<f:convertDateTime type="date"/>
			</h:outputText>
			<h:outputText/>
			<h:outputLabel for="billsBeanBillsTableId" value="Table Id:"/>
			<h:outputText id="billsBeanBillsTableId" value="#{billsBean.bills.tableId}"/>
			<h:outputText/>
			<h:outputLabel for="billsBeanBillsTotalAmount" value="Total Amount:"/>
			<h:outputText id="billsBeanBillsTotalAmount" value="#{billsBean.bills.totalAmount}"/>
			<h:outputText/>
			<h:outputLabel for="billsBeanBillsCustomerId" value="Customer Id:"/>
			<h:outputText id="billsBeanBillsCustomerId" value="#{billsBean.bills.customerId}"/>
			<h:outputText/>
			<h:outputLabel for="billsBeanBillsCreatedBy" value="Created By:"/>
			<h:outputText id="billsBeanBillsCreatedBy" value="#{billsBean.bills.createdBy}"/>
			<h:outputText/>
			<h:outputLabel for="billsBeanBillsModifiedBy" value="Modified By:"/>
			<h:outputText id="billsBeanBillsModifiedBy" value="#{billsBean.bills.modifiedBy}"/>
			<h:outputText/>
			<h:outputLabel value="Is Billed:"/>
			<h:outputText styleClass="#{billsBean.bills.isBilled ? 'boolean-true' : 'boolean-false'}" value=""/>
			<h:outputText/>
			<h:outputLabel value="Is Deleted:"/>
			<h:outputText styleClass="#{billsBean.bills.isDeleted ? 'boolean-true' : 'boolean-false'}" value=""/>
			<h:outputText/>
			<h:outputLabel value="Is Public:"/>
			<h:outputText styleClass="#{billsBean.bills.isPublic ? 'boolean-true' : 'boolean-false'}" value=""/>
			<h:outputText/>
		</h:panelGrid>

		<div class="buttons">
			<h:link value="View All" outcome="search" styleClass="btn btn-primary"/> 
			<h:link value="Edit" outcome="create" includeViewParams="true" styleClass="btn btn-primary"/>
			<h:link value="Create New" outcome="create" styleClass="btn btn-primary"/>
		</div>
	</ui:define>

</ui:composition>